package com.springapp.mvc.services;

import com.springapp.mvc.dao.RoleDao;
import com.springapp.mvc.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by nkrivko on 19.12.2014.
 */
@Component
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleDao roleDao;
    @Override
    public Role getRoleById(long id) {
        return roleDao.getRoleById(id);
    }
}
